﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Projeto_Trucadores.Classes;
using System.Data;


namespace Projeto_Trucadores
{
    public partial class ExemploMyManager : System.Web.UI.Page
    {
        private MyManager manager;

        protected void Page_Load(object sender, EventArgs e)
        {
            manager = new MyManager();
            DataTable table = manager.ExecuteCommand("SELECT * FROM TURMA");
            int result = manager.ExecuteNonQuery("INSERT INTO TURMA VALUES ('')");
            object obj = manager.ExecuteScalar("SELECT SUM(valor) FROM TURMA");
        }
    }
}